package com.dd.da.service;

import com.dd.da.service.fallback.UserFallBackFactory;
import com.dd.dc.entity.users.DUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述: 用户Feign
 *
 * @author: yanglin
 * @Date: 2021-03-05-11:30
 * @Version: 1.0
 */
@FeignClient(value = "dd-user-service", fallbackFactory = UserFallBackFactory.class)
public interface UserClient {

    @PostMapping("/user/d-user/queryUserOne")
    DUser queryUserOne(@RequestBody DUser dUser);

    @PostMapping("/user/d-user/queryUserInfo")
    DUser queryUserInfo(@RequestParam int userId);
}
